<!-- <template>
   <div class="menu-left">
         <zt-ztree class="organization_tree" v-if="testData" :nodeChange="nodeChange" :config="ztreeConfig" :testData="testData"></zt-ztree>
    </div>
</template>
<script>
    import ztZtree  from '@/components/z-tree/z-tree.vue'
    export default {
      data(){
      	return{
      		  //   ztree的配置文件
          ztreeConfig:{
              id : 'menuid',
              pid:"menuparentid",
              name:'menuname',
              idIcon:"icon-renliziyuan",
              pidIcon:"icon-bumen"
          },
		  testData : ""
      	}
      },
      methods:{
      	nodeChange(node){
			console.log(node);
		}
      },
      created(){
      	this.$post('/menu/getMenuList',{},(data)=>{
	         this.testData = data;
	        },(err)=>{
	          alert(err)
	    })
      },
      mounted(){
      },
      components:{
        ztZtree
      }
    }
</script>
 -->